package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.OrderAttachment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单附件Mapper接口
 *
 * @author hjf
 * @date 2025-06-23
 */
public interface OrderAttachmentMapper {
    /**
     * 查询订单附件
     *
     * @param id 订单附件主键
     * @return 订单附件
     */
    public OrderAttachment selectOrderAttachmentById(Long id);

    /**
     * 查询订单附件列表
     *
     * @param orderAttachment 订单附件
     * @return 订单附件集合
     */
    public List<OrderAttachment> selectOrderAttachmentList(OrderAttachment orderAttachment);

    /**
     * 新增订单附件
     *
     * @param orderAttachment 订单附件
     * @return 结果
     */
    public int insertOrderAttachment(OrderAttachment orderAttachment);

    /**
     * 修改订单附件
     *
     * @param orderAttachment 订单附件
     * @return 结果
     */
    public int updateOrderAttachment(OrderAttachment orderAttachment);

    /**
     * 删除订单附件
     *
     * @param id 订单附件主键
     * @return 结果
     */
    public int deleteOrderAttachmentById(Long id);

    /**
     * 批量删除订单附件
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrderAttachmentByIds(Long[] ids);


    List<OrderAttachment> selectOrderAttachmentByFollowIds(@Param("ids") List<Long> ids);
}
